@echo off
cls

rem Wake-on-LAN Tool Usage Instructions
echo ====================================================
echo Wake-on-LAN Tool (WOL) Usage Instructions
echo ====================================================
echo Usage: wolcmd MAC_ADDRESS [-b BROADCAST_ADDRESS] [-p PORT]
echo.
echo Parameters:
echo   MAC_ADDRESS     Required, supported formats: 00:11:22:33:44:55, 00-11-22-33-44-55 or 001122334455
echo   -b              Optional, specify broadcast address, default is 255.255.255.255
echo   -p              Optional, specify port number, default is 50000
echo.
echo Examples:
echo   wolcmd 00:11:22:33:44:55
echo   wolcmd 00-11-22-33-44-55 -b 192.168.1.255 -p 7
echo ====================================================
echo.

rem Check if MAC address parameter is provided
if "%1"=="" (
    echo Please enter MAC address to wake up the computer:
    set /p mac_address=Enter MAC address: 
    goto run_wolcmd
) else (
    set mac_address=%1
    shift
    goto run_wolcmd_with_params
)

:run_wolcmd
wolcmd\Release\wolcmd.exe %mac_address%
pause
goto end

:run_wolcmd_with_params
wolcmd\Release\wolcmd.exe %mac_address% %1 %2 %3 %4 %5
pause

:end
